<template>
  <Person v-if="isShow" />
  <h1>你好</h1>
</template>

<script setup lang="ts">
import Person from "./components/Person.vue";
import { onMounted, ref } from "vue";

let isShow = ref(true)

// 挂载前
onMounted(()=>{
  console.log('父---挂载完成');
  
})
</script>

<style></style>
